home *** CD-ROM | disk | FTP | other *** search
- // Borland C++ Builder
- // Copyright (c) 1995, 1998 by Borland International
- // All rights reserved
-
- // (DO NOT EDIT: machine generated header) 'AHMTAutoStores.pas' rev: 3.00
-
- #ifndef AHMTAutoStoresHPP
- #define AHMTAutoStoresHPP
- #include <Controls.hpp>
- #include <ComCtrls.hpp>
- #include <StdCtrls.hpp>
- #include <AHMSControls.hpp>
- #include <Registry.hpp>
- #include <IniFiles.hpp>
- #include <Dialogs.hpp>
- #include <Classes.hpp>
- #include <Messages.hpp>
- #include <Windows.hpp>
- #include <SysUtils.hpp>
- #include <SysInit.hpp>
- #include <System.hpp>
-
- //-- user supplied -----------------------------------------------------------
-
- namespace Ahmtautostores
- {
- //-- type declarations -------------------------------------------------------
- enum TAHMRootKey { hkeyClassesRoot, hkeyCurrentUser, hkeyLocalMachine, hkeyUsers, hkeyCurrentConfig,
- hkeyDynData };
-
- enum TAHMDatatype { sRegistry, sIniFile };
-
- class DELPHICLASS TAHMRegistry;
- class PASCALIMPLEMENTATION TAHMRegistry : public Classes::TPersistent
- {
- typedef Classes::TPersistent inherited;
-
- private:
- TAHMRootKey FRootKey;
- System::AnsiString FSection;
- System::AnsiString FPath;
-
- public:
- __fastcall TAHMRegistry(void);
- __fastcall virtual ~TAHMRegistry(void);
-
- __published:
- __property TAHMRootKey Rootkey = {read=FRootKey, write=FRootKey, default=1};
- __property System::AnsiString Path = {read=FPath, write=FPath};
- __property System::AnsiString Section = {read=FSection, write=FSection};
- };
-
- class DELPHICLASS TAHMIniFile;
- class PASCALIMPLEMENTATION TAHMIniFile : public Classes::TPersistent
- {
- typedef Classes::TPersistent inherited;
-
- private:
- System::AnsiString FFilename;
- System::AnsiString FSection;
-
- public:
- __fastcall TAHMIniFile(void);
- __fastcall virtual ~TAHMIniFile(void);
-
- __published:
- __property System::AnsiString Filename = {read=FFilename, write=FFilename};
- __property System::AnsiString Section = {read=FSection, write=FSection};
- };
-
- class DELPHICLASS TAHMDataStore;
- class PASCALIMPLEMENTATION TAHMDataStore : public Classes::TPersistent
- {
- typedef Classes::TPersistent inherited;
-
- private:
- bool FEnabled;
- TAHMDatatype FDatatype;
- TAHMRegistry* FRegistry;
- TAHMIniFile* FIniFile;
- Classes::TNotifyEvent FOnError;
- int FErrorInt;
- System::AnsiString FErrorStr;
- bool FErrorBool;
- System::AnsiString __fastcall GetSection(void);
- void __fastcall DoFix(void);
-
- public:
- __fastcall TAHMDataStore(void);
- __fastcall virtual ~TAHMDataStore(void);
- System::AnsiString __fastcall ReadStr(System::AnsiString Key);
- int __fastcall ReadInt(System::AnsiString Key);
- bool __fastcall ReadBool(System::AnsiString Key);
- System::AnsiString __fastcall ReadCrypt(System::AnsiString Key);
- void __fastcall WriteCrypt(System::AnsiString Key, System::AnsiString Value);
- void __fastcall ReadStrs(Classes::TStringList* &Values);
- void __fastcall WriteStr(System::AnsiString Key, System::AnsiString Value);
- void __fastcall WriteInt(System::AnsiString Key, int Value);
- void __fastcall WriteBool(System::AnsiString Key, bool Value);
- void __fastcall DeleteKey(System::AnsiString Key);
- void __fastcall Erase(void);
-
- __published:
- __property int ErrorInt = {read=FErrorInt, write=FErrorInt, nodefault};
- __property System::AnsiString ErrorStr = {read=FErrorStr, write=FErrorStr};
- __property bool ErrorBool = {read=FErrorBool, write=FErrorBool, nodefault};
- __property Classes::TNotifyEvent OnError = {read=FOnError, write=FOnError};
- __property bool Enabled = {read=FEnabled, write=FEnabled, default=1};
- __property TAHMDatatype Datatype = {read=FDatatype, write=FDatatype, default=0};
- __property TAHMRegistry* Registry = {read=FRegistry, write=FRegistry};
- __property TAHMIniFile* Inifile = {read=FIniFile, write=FIniFile};
- };
-
- class DELPHICLASS TAHMControlStore;
- class PASCALIMPLEMENTATION TAHMControlStore : public Classes::TComponent
- {
- typedef Classes::TComponent inherited;
-
- private:
- Classes::TNotifyEvent FOnError;
- TAHMDataStore* FDataStore;
- Ahmscontrols::TAHMAboutSControlStr FAboutStr;
-
- public:
- __fastcall virtual TAHMControlStore(Classes::TComponent* AOwner);
- __fastcall virtual ~TAHMControlStore(void);
- System::AnsiString __fastcall ReadStr(System::AnsiString Key);
- int __fastcall ReadInt(System::AnsiString Key);
- bool __fastcall ReadBool(System::AnsiString Key);
- System::AnsiString __fastcall ReadCrypt(System::AnsiString Key);
- void __fastcall WriteCrypt(System::AnsiString Key, System::AnsiString Value);
- void __fastcall ReadStrs(Classes::TStringList* &Values);
- void __fastcall WriteStr(System::AnsiString Key, System::AnsiString Value);
- void __fastcall WriteInt(System::AnsiString Key, int Value);
- void __fastcall WriteBool(System::AnsiString Key, bool Value);
- void __fastcall DeleteKey(System::AnsiString Key);
- void __fastcall Erase(void);
-
- __published:
- __property Ahmscontrols::TAHMAboutSControlStr About = {read=FAboutStr, write=FAboutStr};
- __property Classes::TNotifyEvent OnError = {read=FOnError, write=FOnError};
- __property TAHMDataStore* DataStore = {read=FDataStore, write=FDataStore};
- };
-
- class DELPHICLASS TAHMStoreEdit;
- class PASCALIMPLEMENTATION TAHMStoreEdit : public Stdctrls::TEdit
- {
- typedef Stdctrls::TEdit inherited;
-
- private:
- System::AnsiString FStoreKey;
- System::AnsiString FValue;
- Ahmscontrols::TAHMAboutSControlStr FAboutStr;
- TAHMControlStore* FControlStore;
-
- protected:
- virtual void __fastcall Notification(Classes::TComponent* AComponent, Classes::TOperation Operation
- );
- void __fastcall SavetoStore(void);
-
- public:
- virtual void __fastcall Loaded(void);
- __fastcall virtual ~TAHMStoreEdit(void);
- DYNAMIC void __fastcall Change(void);
-
- __published:
- __property TAHMControlStore* Store = {read=FControlStore, write=FControlStore};
- __property Ahmscontrols::TAHMAboutSControlStr About = {read=FAboutStr, write=FAboutStr};
- __property System::AnsiString StoreKey = {read=FStoreKey, write=FStoreKey};
- public:
- /* TCustomEdit.Create */ __fastcall virtual TAHMStoreEdit(Classes::TComponent* AOwner) : Stdctrls::
- TEdit(AOwner) { }
-
- public:
- /* TWinControl.CreateParented */ __fastcall TAHMStoreEdit(HWND ParentWindow) : Stdctrls::TEdit(ParentWindow
- ) { }
-
- };
-
- class DELPHICLASS TAHMStoreCheckbox;
- class PASCALIMPLEMENTATION TAHMStoreCheckbox : public Stdctrls::TCheckBox
- {
- typedef Stdctrls::TCheckBox inherited;
-
- private:
- System::AnsiString FStoreKey;
- bool FValue;
- Ahmscontrols::TAHMAboutSControlStr FAboutStr;
- TAHMControlStore* FControlStore;
-
- protected:
- virtual void __fastcall Notification(Classes::TComponent* AComponent, Classes::TOperation Operation
- );
- void __fastcall SavetoStore(void);
-
- public:
- virtual void __fastcall Loaded(void);
- __fastcall virtual ~TAHMStoreCheckbox(void);
- DYNAMIC void __fastcall Click(void);
-
- __published:
- __property TAHMControlStore* Store = {read=FControlStore, write=FControlStore};
- __property Ahmscontrols::TAHMAboutSControlStr About = {read=FAboutStr, write=FAboutStr};
- __property System::AnsiString StoreKey = {read=FStoreKey, write=FStoreKey};
- public:
- /* TCustomCheckBox.Create */ __fastcall virtual TAHMStoreCheckbox(Classes::TComponent* AOwner) : Stdctrls::
- TCheckBox(AOwner) { }
-
- public:
- /* TWinControl.CreateParented */ __fastcall TAHMStoreCheckbox(HWND ParentWindow) : Stdctrls::TCheckBox(
- ParentWindow) { }
-
- };
-
- class DELPHICLASS TAHMStoreRadioButton;
- class PASCALIMPLEMENTATION TAHMStoreRadioButton : public Stdctrls::TRadioButton
- {
- typedef Stdctrls::TRadioButton inherited;
-
- private:
- System::AnsiString FStoreKey;
- bool FValue;
- Ahmscontrols::TAHMAboutSControlStr FAboutStr;
- TAHMControlStore* FControlStore;
-
- protected:
- virtual void __fastcall Notification(Classes::TComponent* AComponent, Classes::TOperation Operation
- );
- void __fastcall SavetoStore(void);
-
- public:
- virtual void __fastcall Loaded(void);
- __fastcall virtual ~TAHMStoreRadioButton(void);
- DYNAMIC void __fastcall Click(void);
-
- __published:
- __property TAHMControlStore* Store = {read=FControlStore, write=FControlStore};
- __property Ahmscontrols::TAHMAboutSControlStr About = {read=FAboutStr, write=FAboutStr};
- __property System::AnsiString StoreKey = {read=FStoreKey, write=FStoreKey};
- public:
- /* TRadioButton.Create */ __fastcall virtual TAHMStoreRadioButton(Classes::TComponent* AOwner) : Stdctrls::
- TRadioButton(AOwner) { }
-
- public:
- /* TWinControl.CreateParented */ __fastcall TAHMStoreRadioButton(HWND ParentWindow) : Stdctrls::TRadioButton(
- ParentWindow) { }
-
- };
-
- class DELPHICLASS TAHMStoreCombobox;
- class PASCALIMPLEMENTATION TAHMStoreCombobox : public Stdctrls::TComboBox
- {
- typedef Stdctrls::TComboBox inherited;
-
- private:
- System::AnsiString FStoreKey;
- System::AnsiString FValue;
- Ahmscontrols::TAHMAboutSControlStr FAboutStr;
- TAHMControlStore* FControlStore;
-
- protected:
- virtual void __fastcall Notification(Classes::TComponent* AComponent, Classes::TOperation Operation
- );
- void __fastcall SavetoStore(void);
-
- public:
- virtual void __fastcall Loaded(void);
- __fastcall virtual ~TAHMStoreCombobox(void);
- DYNAMIC void __fastcall Change(void);
-
- __published:
- __property ItemIndex ;
- __property Ahmscontrols::TAHMAboutSControlStr About = {read=FAboutStr, write=FAboutStr};
- __property TAHMControlStore* Store = {read=FControlStore, write=FControlStore};
- __property System::AnsiString StoreKey = {read=FStoreKey, write=FStoreKey};
- public:
- /* TCustomComboBox.Create */ __fastcall virtual TAHMStoreCombobox(Classes::TComponent* AOwner) : Stdctrls::
- TComboBox(AOwner) { }
-
- public:
- /* TWinControl.CreateParented */ __fastcall TAHMStoreCombobox(HWND ParentWindow) : Stdctrls::TComboBox(
- ParentWindow) { }
-
- };
-
- class DELPHICLASS TAHMStoreMemo;
- class PASCALIMPLEMENTATION TAHMStoreMemo : public Comctrls::TRichEdit
- {
- typedef Comctrls::TRichEdit inherited;
-
- private:
- System::AnsiString FStoreKey;
- System::AnsiString FValue;
- TAHMControlStore* FControlStore;
- Ahmscontrols::TAHMAboutSControlStr FAboutStr;
-
- protected:
- virtual void __fastcall Notification(Classes::TComponent* AComponent, Classes::TOperation Operation
- );
- void __fastcall SavetoStore(void);
-
- public:
- virtual void __fastcall Loaded(void);
- __fastcall virtual ~TAHMStoreMemo(void);
- DYNAMIC void __fastcall Change(void);
-
- __published:
- __property Ahmscontrols::TAHMAboutSControlStr About = {read=FAboutStr, write=FAboutStr};
- __property TAHMControlStore* Store = {read=FControlStore, write=FControlStore};
- __property System::AnsiString StoreKey = {read=FStoreKey, write=FStoreKey};
- public:
- /* TCustomRichEdit.Create */ __fastcall virtual TAHMStoreMemo(Classes::TComponent* AOwner) : Comctrls::
- TRichEdit(AOwner) { }
-
- public:
- /* TWinControl.CreateParented */ __fastcall TAHMStoreMemo(HWND ParentWindow) : Comctrls::TRichEdit(
- ParentWindow) { }
-
- };
-
- //-- var, const, procedure ---------------------------------------------------
- extern PACKAGE HKEY AHMHKeys[6];
-
- } /* namespace Ahmtautostores */
- #if !defined(NO_IMPLICIT_NAMESPACE_USE)
- using namespace Ahmtautostores;
- #endif
- //-- end unit ----------------------------------------------------------------
- #endif // AHMTAutoStores
-